﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WSFacebookPoster;
using log4net;

namespace FacebookServiceTester
{
    public partial class Form1 : Form
    {
        private static readonly log4net.ILog _logger = LogManager.GetLogger(typeof(Form1));

        public Form1()
        {
            InitializeComponent();
            log4net.Config.XmlConfigurator.Configure();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

            if (_logger.IsDebugEnabled)
            {
                _logger.Debug("Kullanıcıdan veri alınıyor");
            }

            if (_logger.IsInfoEnabled)
            {
                _logger.InfoFormat("Kullanıcı {0} değerini girmiştir", 12);
            }

            new FacebookQuery().Test();
        }
    }
}
